home *** CD-ROM | disk | FTP | other *** search
/ InterCD 2000 September / september_2000.iso / intercd / root / ^Linux / cdrtools-1.10 / rc.pp < prev    next >
Encoding:
Text File  |  2000-06-04  |  2.4 KB  |  72 lines

  1. #!/bin/sh
  2.  
  3. adapter=friq
  4.  
  5. case "$1" in
  6.  
  7. 'start')
  8.     echo "Starting Parallel Port IDE/ATAPI"
  9.     modprobe paride
  10.     modprobe "$adapter"
  11. #    modprobe pg
  12. #    modprobe pg verbose=2 drive0=0x378,0,0,-1,-1,0
  13.     modprobe pg verbose=0 drive0=0x378,0,0,-1,-1,0
  14.     ;;
  15.  
  16. 'stop')
  17.     echo "Stopping Parallel Port IDE/ATAPI"
  18.     rmmod pg
  19.     rmmod "$adapter"
  20.     rmmod paride
  21.     ;;
  22.  
  23. *)
  24.     echo "Usage: rc.pp start|stop"
  25. esac
  26.  
  27. exit
  28.  
  29. ###############################################################################
  30. When you load pg, you need to specify some parameters like:
  31.  
  32.         drive0=0x378,0,0,4,0,0
  33.  
  34. The parameters are:
  35.  
  36.  <prt>,<pro>,<uni>,<mod>,<slv>,<dly>
  37.  
  38.                         Where,
  39.  
  40.                 <prt>   is the base of the parallel port address for
  41.                         the corresponding drive.  (required)
  42.  
  43.                 <pro>   is the protocol number for the adapter that
  44.                         supports this drive.  These numbers are
  45.                         logged by 'paride' when the protocol modules
  46.                         are initialised.  (0 if not given)
  47.  
  48.                 <uni>   for those adapters that support chained
  49.                         devices, this is the unit selector for the
  50.                         chain of devices on the given port.  It should
  51.                         be zero for devices that don't support chaining.
  52.                         (0 if not given)
  53.  
  54.                 <mod>   this can be -1 to choose the best mode, or one
  55.                         of the mode numbers supported by the adapter.
  56.                         (-1 if not given)
  57.  
  58.                 <slv>   ATAPI devices can be jumpered to master or slave.
  59.                         Set this to 0 to choose the master drive, 1 to
  60.                         choose the slave, -1 (the default) to choose the
  61.                         first drive found.
  62.  
  63.                 <dly>   some parallel ports require the driver to 
  64.                         go more slowly.  -1 sets a default value that
  65.                         should work with the chosen protocol.  Otherwise,
  66.                         set this to a small integer, the larger it is
  67.                         the slower the port i/o.  In some cases, setting
  68.                         this to zero will speed up the device. (default -1)
  69.  
  70. EPP mode is best.  Your BIOS may not give you that option, unfortunately.
  71. What options does it support ?
  72.